/**
 * @description 基站
 */
import request from '@/utils/request'

async function getStationList (data) {
    return request({
        url: '/position/station/list',
        method: 'get',
        params: data
    })
}

// 获取基站详情
async function getStationInfo (id) {
    return request({
        url: `/position/station/${id}`,
        method: 'get'
    })
}

// 获取定位管理列表
async function getPositionList () {
    return request({
        url: `/position/manage/list`,
        method: 'get'
    })
}
// 删除基站
async function deleteStation (id) {
    return request({
        url: `/position/station/${id}`,
        method: 'delete'
    })
}

// 添加基站
async function addStation (data) {
    return request({
        url: '/position/station',
        method: 'post',
        data: data

    })
}

// 修改基站信息
async function modifiStation (data) {
    return request({
        url: '/position/station',
        method: 'put',
        data: data

    })
}

// 导出基站信息

async function exportStation (data) {
    return request({
        url: '/position/station/export',
        method: 'get',
        params: data

    })
}

// 基站详情

async function stationDetail (data) {
    return request({
        url: '/position/manage/detailList',
        method: 'post',
        data: data

    })
}

export {
    getStationList,
    getStationInfo,
    getPositionList,
    deleteStation,
    addStation,
    modifiStation,
    exportStation,
    stationDetail
}